package com.hspjava.String_;

public class StringExercise08 {
    public static void main(String[] args) {
        String a = "lfm";
        String b = "114514";

        //1,先创建了 一个 StringBuilder对象
        //2.执行  sb.append("hello");
        //3. sb.append("abc");
        //4.String c = sb.toString();  toString的底层是new
        String c = a + b;
        String d = "lfm114514";

        System.out.println(c == d);

        String e = "lfm" + "114514";

        System.out.println(e == d);
    }
}
